import React, { Component } from 'react'
import { LeftOutlined } from '@ant-design/icons';
import SetNew from '../../components/user/SetNew'
export default class Forget extends Component {
    componentDidMount() {
        console.log(this.props.match)
    }

    render() {
        const { email, captcha } = this.props.match.params;
        return (
            <div>
                <LeftOutlined style={{ padding: '0.3rem', fontSize: '0.44rem', color: '#c3c3c3' }} onClick={() => this.props.history.go(-1)} />
                <h2 style={{
                    fontSize: '0.56rem', fontWeight: 'bold', margin: '0.5rem 0 0.1rem', padding: '0 1rem', display: 'flex', justifyContent: 'space-between'
                }}>
                    <span>设置新密码</span>
                    <span>2/2</span>
                </h2>
                <div style={{padding:'0 1rem',marginTop:'0.7rem'}}>
               <SetNew uemail={email} captcha={captcha}></SetNew>
               </div>
            </div>

        )
    }
}
